package com.abaddon.model;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class Tag extends OverlayItem{

	private GeoPoint point;
	private String title;
	private String snippet;
	
	/**
	 * Creates a tag with location, title and a description
	 * @param point GeoPoint with latitude and longitude
	 * @param title Title of the tag
	 * @param snippet Description of the tag
	 */
	public Tag(GeoPoint point, String title, String snippet) {
		super(point, title, snippet);
		this.point = point;
		this.title = title;
		this.snippet = snippet;
		
	}
	
	/**
	 * Set tag at the lat and long
	 * @param point GeoPoint with latitude and longitude
	 */
	public void setPoint(GeoPoint point){
		this.point = point;
	}
	
	@Override
	public GeoPoint getPoint() {
		return this.point;
	}
	
	public void setTitle(String title){
		this.title = title;
	}
	
	@Override
	public String getTitle() {
		return this.title;
	}
	
	public void setSnippet(String snippet){
		this.snippet = snippet;
	}
	
	@Override
	public String getSnippet() {
		return this.snippet;
	}

}
